package com.song.test;

import java.util.HashMap;
import java.util.Random;

/**
 * @Author Klys
 * @Date 2023/6/15 10:02
 * @Description
 * @Version 1.0
 */
public class OrderUtils {

    public static void main(String[] args) {

        Random random = new Random();
        Long l = random.nextLong() % 10000000000L + 10000000000L;
        System.out.println(l);

        Long l1 = -640L % 1000L;
        System.out.println(l1);
        long l2 = l1 + 1000L;
        System.out.println(l2);


        String s = String.valueOf("abc");
        System.out.println(s);

        HashMap<Object, Object> map = new HashMap<>();
        map.put(1, "abc");
        String s1 = String.valueOf(map);
        System.out.println(s1);


        String s2 = new String("001200");
        long l3 = Long.parseLong(s2);
        System.out.println(l3);

        Long l0 = 0001000L;
        System.out.println(l0);
        String replace = String.format("%10d", l0).replace(" ", "0");
        System.out.println(replace);


    }
}
